.bg {
	width: 100%;
	background: url(../img/hbbg.jpg) no-repeat;
	background-size: 100% 100%;
	box-sizing: border-box;
	padding-bottom: 30px;
	position: relative;
	padding-top: 8px
}

.bg .cjjh {
	position: absolute;
	top: -90px;
	left: 50%;
	margin-left: -75px;
	width: 150px;
	height: 30px;
	line-height: 30px;
	background: #FFCC66;
	color: #B7302C;
	text-align: center;
	border-radius: 15px;
	font-size: 12px
}

.bg .wd {
	width: 100%;
	position: absolute;
	left: 0;
	top: -70px;
	height: 80px
}

.main {
	width: 85%;
	margin: 0 auto;
	background: url(../img/contbg.png) no-repeat;
	background-size: 100% 100%;
	height: 300px;
	overflow: hidden;
	position: relative;
	box-sizing: border-box;
	padding: 10px;
	
}

.main li {
	list-style: none;
	width: calc((100% - 60px)/ 3);
	position: absolute;
	right:10px;
	top:150px;
	height: 130px;
	background: url(../img/hbbg.png) no-repeat;
	background-size: 100% 100%;
	transition: .3s;
}
/*卡牌翻开动画*/

.main li.open-card {
	position: fixed;
	left: 37.5% !important;
	top: 50% !important;
	z-index: 10;
	
	margin-top:-60px;
	-o-transform: scale(1.5);
	-ms-transform: scale(1.5);
	-moz-transform: scale(1.5);
	-webkit-transform: scale(1.5);
	transform: scale(2);
	animation: openCard 2s 0.5s linear forwards;
}

@keyframes openCard {
	10%,
	30%,
	50% {
		-o-transform: scale(2) translateX(-10px);
		-ms-transform: scale(2) translateX(-10px);
		-moz-transform: scale(2) translateX(-10px);
		-webkit-transform: scale(2) translateX-(10px);
		transform: scale(2) translateX(-10px);
	}
	20%,
	40%,
	60% {
		-o-transform: scale(2) translateX(10px);
		-ms-transform: scale(2) translateX(10px);
		-moz-transform: scale(2) translateX(10px);
		-webkit-transform: scale(2) translateX(10px);
		transform: scale(2) translateX(10px);
	}
	100% {
		-o-transform: scale(2) translateX(90deg);
		-ms-transform: scale(2) translateX(90deg);
		-moz-transform: scale(2) translateX(90deg);
		-webkit-transform: scale(2) translateX(90deg);
		transform: scale(2) rotateY(180deg);
		-o-transform: scale(2) rotateY(180deg);
	}
}
.main li img {
	width: 100%;
	height: 100%;
	margin: 0px auto
}

.hdsj {
	margin-top: 20px;
}

.hdsj img,.hdcont img {
	height: 45px;
	margin: 10px auto;
}

.hdsj p {
	background: url(../img/contbg2.png) no-repeat;
	background-size: 100% 100%;
	height:60px;
	line-height: 60px;
	text-align: center;
	width:85%;
	margin: 0 auto;
	font-size: 16px;
	color: #B7302C;
	font-weight:bold
}
.hdcont div{
	background: url(../img/contbg.png) no-repeat;
	background-size: 100% 100%;
	
	text-align: center;
	width: 85%;
	margin: 0 auto;
	font-size: 14px;
	color: #B7302C;
	padding-top:10px;
	padding-bottom: 10px;
}
.hdcont div p{
	width:100%;
	box-sizing: border-box;
	text-indent: 2em;
	line-height:25px;
	padding:5px 15px;
	text-align: left;
	
}
.main li.active {

	-o-animation: shaking 0.5s ease-in-out;
	-ms-animation: shaking 0.5s ease-in-out;
	-moz-animation: shaking 0.5s ease-in-out;
	-webkit-animation: shaking 0.5s ease-in-out;
	animation: shaking 0.5s ease-in-out;
}

@keyframes shaking {
	0%,
	100% {
		
		transform: rotateY(0deg);
	}
	33% {
		
		transform: rotateY(-40deg);
	}
	66% {
		
		transform: rotateY(40deg);
	}
}
/*翻牌遮罩*/

#mask-card {
	display: none;
	position: fixed;
	z-index: 1;
	width: 100%;
	height: 100%;
	left:0;
	top:0;
	background-color: rgba(0, 0, 0, 0.85);
}
/*中奖提示*/
#mask {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
}
#mask .blin {
  width: 100%;
  height:100vw;
  background: url("../img/gold.png") no-repeat;
  background-size:100% auto;
 
  animation: circle 10s linear infinite;
  position:absolute ;
  left:0;
  top:50%;
  margin-top:-50%;
}
@keyframes circle {
  0% {
    -o-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -o-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
#mask .caidai {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: url("../img/dianzhui.png") no-repeat;
  background-size:100% 100%;
}
#mask .winning {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 250px;
  height: 280px;
  margin-left:-125px;
  margin-top:-140px;
  transform: scale(0.1);
}
#mask .reback {
  -o-animation: reback .5s linear forwards;
  -ms-animation: reback .5s linear forwards;
  -moz-animation: reback .5s linear forwards;
  -webkit-animation: reback .5s linear forwards;
  animation: reback .5s linear forwards;
}
@keyframes reback {
  100% {
    -o-transform: scale(1);
    -ms-transform: scale(1);
    -moz-transform: scale(1);
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}
.winning .red-head {
  position: relative;
  top:0px;
  width: 100%;
  height: 150px;
  background-image: url("../img/top2.png");
  background-size:100% auto
}
.winning .red-body {
  position: relative;
  top: -80px;
  z-index: 2;
  width: 100%;
  height: 180px;
  background: url("../img/bottom.png") no-repeat;
  background-size:100% auto
}
.winning #card {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  transform: translateX(-50%);
  margin-top: -80px;
  width: 80%;
  height: 140px;
  background-image: url("../img/middle.png");
  background-size:100% auto;

  transition: top .5s;
}
#card .win {
  display: block;
  margin: 10px auto;
  width: 92%;
  height: 140px;
  background-image: url("../img/prize2.png");
  background-size:100% auto
}
.winning .pull {
  -o-animation: card .5s linear forwards;
  -ms-animation: card .5s linear forwards;
  -moz-animation: card .5s linear forwards;
  -webkit-animation: card .5s linear forwards;
  animation: card .5s linear forwards;
}
@keyframes card {
  100% {
    margin-top: -130px;
    
  }
}
.winning .btn {
  position: absolute;
  left: 50%;
  bottom: 80px;
  z-index: 2;
  width: 180px;
  height: 30px;
  margin-left: -90px;
  background-image: url("../img/button.png");
  background-size:100% 100%;
  animation: shake .5s 2 linear alternate;
}
@keyframes shake {
  50% {
    -o-transform: rotate(-5deg);
    -ms-transform: rotate(-5deg);
    -moz-transform: rotate(-5deg);
    -webkit-transform: rotate(-5deg);
    transform: rotate(-5deg);
  }
  100% {
    -o-transform: rotate(5deg);
    -ms-transform: rotate(5deg);
    -moz-transform: rotate(5deg);
    -webkit-transform: rotate(5deg);
    transform: rotate(5deg);
  }
}
#close {
  opacity: 0;
  position: absolute;
  right: 0rem;
  top: -90px;
  z-index: 10;
  width:30px;
  height: 30px;
  background-image: url("../img/close.png");
 background-size:100% 100%;
  animation: fadein .5s .5s linear forwards;
}
@keyframes fadein {
  100% {
    opacity: 1;
    -o-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}


